class Base():
    def __init__(self,driver):
        self.driver = driver

    def get_url(self,url):
        self.driver.get(url)

    def find_element(self,loc):
       return self.driver.find_element(*loc)
    #输入
    def send_keys(self,info,loc):
        self.find_element(info).send_keys(loc)
    #文本
    def text(self,loc):
        return self.driver.text(loc)
    #点击
    def click(self,loc):
        self.driver.find_element(loc).click()
    #关闭
    def close(self,loc):
        self.find_element(loc).close()
        self.driver.im
    #隐式等待：
